package com.qianya.system.face.web.patient.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qianya.model.pojo.patient.qo.PatientHisPrescriptionQO;
import com.qianya.model.pojo.patient.vo.MonthVo;
import com.qianya.model.pojo.patient.vo.PatientHisPrescriptionVO;
import com.qianya.system.face.web.patient.model.PatientHisPrescription;
import com.qianya.model.common.CommonResult;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* <p>
    *  服药日志表 服务类
    * </p>
* @author lhl
* @since 2020-07-07
*/
public interface IPatientHisPrescriptionService extends IService<PatientHisPrescription> {
        CommonResult find(PatientHisPrescriptionQO patientHisPrescription);
        CommonResult renewal(PatientHisPrescription patientHisPrescription,HttpServletRequest request);
        CommonResult dispensing(String hpId,HttpServletRequest request);
        CommonResult create(PatientHisPrescription patientHisPrescription,HttpServletRequest request);
        CommonResult view(String fileId);
        List<MonthVo> eatStatistics();
        CommonResult today();
        int eatMedicCount(int type);
        CommonResult patientOneDayMedicineDateils(String fileIdentityCard,String time);
}
